using UnityEngine;
using UnityEngine.Events;

namespace Geo.DizzyLab
{
    public class TriggerZone : MonoBehaviour
    {
        public UnityEvent<Collider> onEnter, onExit, onStay;
        private void OnTriggerEnter(Collider other)
        {
            onEnter.Invoke(other);
        }

        private void OnTriggerExit(Collider other)
        {
            onExit.Invoke(other);
        }

        private void OnTriggerStay(Collider other)
        {
            onStay.Invoke(other);
        }
    }
    
}
